<template>
    <div class="forum-enclosure">
        <div class="forum-enclosure-header">附件资料分享</div>
        <TaskUpload :isRemove="false" :file-list="fileList" :upload-url="uploadUrl"  @updateFileList="uploadFileList" />
    </div>
</template>

<script setup>
import TaskUpload from '@/components/TaskUpload.vue'
import { ref } from 'vue';
const fileList = ref([]);
// const uploadUrl = ref('http://10.6.40.37:8014/client/uploads');
const uploadUrl = ref('https://admin.testace.cn/fenglingClient/client/uploads');
const dataDetail = ref({});
const emit = defineEmits(['updateFileList']);

const uploadFileList = (fileList) => {
    console.log('fileList', fileList)
    fileList.value = fileList;
    emit('updateFileList', fileList);
}
</script>
<style scoped lang="scss">
.forum-enclosure {
    width: 100%;
    min-height: 274px;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    margin-top: 10px;
    .forum-enclosure-header {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 10px;
    }
}
</style>